package com.software.frontend.firstPage.entity;

import java.io.Serializable;
import java.util.Date;

public class Post implements Serializable {
    private int id;
    private int userId;
    private Date createTime;
    private Date updateTime;
    private String wordContent;
    private String mediaContentPath;
    private int likeCount;
    private int commentCount;
    private int readCount;
    private String coverUrl;

    public Post() {
    }

    public Post(int id, int userId, Date createTime, Date updateTime, String wordContent, String mediaContentPath, int likeCount, int commentCount, int readCount, String coverUrl) {
        this.id = id;
        this.userId = userId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.wordContent = wordContent;
        this.mediaContentPath = mediaContentPath;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.readCount = readCount;
        this.coverUrl = coverUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getWordContent() {
        return wordContent;
    }

    public void setWordContent(String wordContent) {
        this.wordContent = wordContent;
    }

    public String getMediaContentPath() {
        return mediaContentPath;
    }

    public void setMediaContentPath(String mediaContentPath) {
        this.mediaContentPath = mediaContentPath;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public int getReadCount() {
        return readCount;
    }

    public void setReadCount(int readCount) {
        this.readCount = readCount;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }
}
